<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title><?=$title?></title>
</head>
<body>
	hello world blog_view <?=$head?>


	<ul>
		<?php foreach ($todo as $item){?>
		<li><?=$item?></li>
		<?php }?>
	</ul>

	<br>
	<?php 
		/*$query = $this->db->query('SELECT * FROM blog');
		foreach($query->result() as $row)
		{
			echo $row->title." . ".$row->content."<br>";
		}
		$data = array(
			
            'title' => "测试",
            'content' => "内容"
            );
            */

		//$this->db->insert('blog', $data);
		
		echo $this->config->site_url()."<br>";
		echo $this->config->base_url()."<br>";
		echo $this->benchmark->elapsed_time()."<br>";
		echo $this->benchmark->memory_usage();
	?>

	<form action="<?php echo $this->config->site_url('blog/add');?>" method="post">
		<input type="text" name="title"><br>
		<textarea name="content" id="content" cols="30" rows="10"></textarea>
		<input type="submit" name="btn" value="submit">
	</form>
</body>
</html>